package com.wntms.gps.service.impl;

import java.util.List;

import com.wntms.gps.dao.CustomerInformationDao;
import com.wntms.gps.service.ICustomerInformationService;
import com.wntms.gps.pojo.CustomerInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 客户信息Service业务层处理
 * 
 * @author group 4
 * @date 2022-11-22
 */
@Service
public class CustomerInformationServiceImpl implements ICustomerInformationService
{
    @Autowired
    private CustomerInformationDao customerInformationDao;

    /**
     * 查询客户信息
     * 
     * @param id 客户信息主键
     * @return 客户信息
     */
    @Override
    public CustomerInformation selectCustomerInformationById(Long id)
    {
        return customerInformationDao.selectCustomerInformationById(id);
    }

    /**
     * 查询客户信息列表
     * 
     * @param customerInformation 客户信息
     * @return 客户信息
     */
    @Override
    public List<CustomerInformation> selectCustomerInformationList(CustomerInformation customerInformation)
    {
        return customerInformationDao.selectCustomerInformationList(customerInformation);
    }

    /**
     * 新增客户信息
     * 
     * @param customerInformation 客户信息
     * @return 结果
     */
    @Override
    public int insertCustomerInformation(CustomerInformation customerInformation)
    {
        return customerInformationDao.insertCustomerInformation(customerInformation);
    }

    /**
     * 修改客户信息
     * 
     * @param customerInformation 客户信息
     * @return 结果
     */
    @Override
    public int updateCustomerInformation(CustomerInformation customerInformation)
    {
        return customerInformationDao.updateCustomerInformation(customerInformation);
    }

    /**
     * 批量删除客户信息
     * 
     * @param ids 需要删除的客户信息主键
     * @return 结果
     */
    @Override
    public int deleteCustomerInformationByIds(Long[] ids)
    {
        return customerInformationDao.deleteCustomerInformationByIds(ids);
    }

    /**
     * 删除客户信息信息
     * 
     * @param id 客户信息主键
     * @return 结果
     */
    @Override
    public int deleteCustomerInformationById(Long id)
    {
        return customerInformationDao.deleteCustomerInformationById(id);
    }
}
